module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        'assets': '@/assets',
        'common': '@/common',
        'components': '@/components',
        'network': '@/network',
        'views': '@/views',
        'utils': '@/utils',
        'api': '@/api',
        'store': '@/store',
        'router': '@/router',
        'config': '@/config'
      }
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://129.211.15.209:3000',
        changeOrigin: true
      },
      '/menu': {
        target: 'http://129.211.15.209:3000',
        changeOrigin: true
      },
      '/my': {
        target: 'http://129.211.15.209:3000',
        changeOrigin: true
      }
    },
    hot: true,//自动保存
  },
}